import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

type homeResult = {
  page: any;
  result: any
};


/** 新增管理员用户管理 */
export const administratorinsertsysuser = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/sysuser/insertsysuser"), { data });
};


/** 删除个人用户 */
export const administratordelsysuser = (userid?: string | number) => {
  return http.request<homeResult>("delete", baseUrlApi(`/secbackend/sysuser/delsysuser/${userid}`));
};

/** 修改个人用户 */
export const administratorupdatesysuser = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/sysuser/updatesysuser"), { data });
};

/** 分页查询个人用户 */
export const administratorselsysuserbypage = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi(`/secbackend/sysuser/selsysuserbypage`), { data });
};

